package com.sh.data.engine.domain.normalization.modeldesign.cdm.model.param;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class TblRelationParam implements Serializable {

    /**
     * 主键
     */
    private Long id;

    /**
     * 项目id
     */
    private Long projectId;

    // 0-1对1 1-1对多 2-多对一
    private Integer type;

    /**
     * 主表id
     */
    private Long mainTableId;

    /**
     * 主表字段
     */
    private List<String> mainTableFields;

    private String mainTableField;

    /**
     * 外键关联表id
     */
    private Long foreignTableId;

    /**
     * 关联表字段
     */
    private List<String> foreignTableFields;

    private String foreignTableField;

    private String uuid;
}
